<template>
  <el-menu
    style="vertical-align: middle"
    :default-active="$route.path"
    class="el-menu-demo"
    router
    mode="horizontal"
    @select="handleSelect"
    background-color="white"
    text-color="black"
    active-text-color="#566772">
    <el-menu-item index="/diagnosis-qiegeji" style="vertical-align: middle" class="cut">切割机</el-menu-item>
    <el-menu-item index="/diagnosis-hanji" style="vertical-align: middle" class="welder">焊机</el-menu-item>
    <el-menu-item style="vertical-align: middle">
      <img src="src/assets/img/lv.png" style="text-align: center; vertical-align: -8px">
      <span style="vertical-align: middle">正常状态</span>
    </el-menu-item>
    <el-menu-item style="vertical-align: middle">
      <img src="src/assets/img/hong.png" style="text-align: center; vertical-align: -8px">
      <span style="vertical-align: middle">故障状态</span>
    </el-menu-item>
  </el-menu>
</template>

<script>
export default {
  name: 'FirstMenu'
}
</script>

<style scoped>
el-menu-item{
  color: #566772;
}
.cut,.welder{
  font-size: 18px;
}
</style>
